package cn.com.dcsgo.settlement;

import cn.com.dcsgo.settlement.model.Commodity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单金额上下文
 *
 * @author Dcsgo
 * @since 2025/11/17 18:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderAmountContext {
    /**
     * 待结算的商品
     */
    private List<Commodity> commodities;
    /**
     * 商品总金额
     */
    private BigDecimal commoditiesAmount;
    /**
     * 折扣金额
     */
    private BigDecimal discountAmount;
    /**
     * 运费
     */
    private BigDecimal freight;
    /**
     * 最终需要支付的金额
     */
    private BigDecimal actualPaymentAmount;
}
